.material {
    .btns {
        margin-bottom: 5px;
    }
}
.material-news, .material-adv {
    column-count: 3;
    -moz-column-count: 3;
    -webkit-column-count: 3;

    .material-item {
        padding: 5px;
        overflow: hidden;
        margin-bottom: 20px;
        border: 1px solid #e9e9e9;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
}

.material-image {

    .material-item {
        width: 150px;
        margin: 20px;
        font-size: 12px;
        overflow: hidden;
        border-radius: 2px;
        display: inline-block;

        div {
            width: 100%;
            height: 150px;
            margin-top: 0;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: 50% 50%;
            border:none;
        }

        p {
            padding: 6px 3px;
            text-align: center;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            border-top: 1px solid #e9e9e9;
        }
    }
}

.material-item {
    cursor: pointer;
    border: 1px solid #e9e9e9;

    div {
        margin-top: 5px;
        padding: 5px;
        h3 {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding: 2px 0 5px 0;
        }

        img {
            max-height: 250px;
        }

        p {
            margin-bottom: 5px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
    }

    div.small {
        min-height: 60px;
        position: relative;
        border-top: 1px solid #ddd;

        h3, p {
            right: 60px;
            position: absolute;
            left: 5px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        img {
            top:5px;
            right:5px;
            width: 50px;
            height: 50px;
            max-height: 250px;
            position: absolute;
        }

        p {
            top: 32px;
            display: block;
        }
    }

    img.material-selected {
        display: none;
    }
}

.material-item.selected {
    position: relative;
    border: 1px solid #5491de;

    img.material-selected {
        top: 0;
        right: 0;
        width: 15px;
        height: 15px;
        display: block;
        padding-left: 1px;
        position: absolute;
        background-color: #5491de;
    }
}